package hu.vaes_dot_hrak.szoftlab4;

public class Player {
	private AntSmellNeutralizeSpray antSmellNeutralizeSpray;
	private AntKillerSpray antKillerSpray;
	private Spray activeSpray;

	public Player(int antSmellNeutralizeSpray_Quantity,
			int antSmellNeutralizeSpray_Radius, int antKillerSpray_Quantity,
			int antKillerSpray_Radius, int antKillerSpray_ToxicTime) {
		antSmellNeutralizeSpray = new AntSmellNeutralizeSpray(
				antSmellNeutralizeSpray_Quantity,
				antSmellNeutralizeSpray_Radius);
		antKillerSpray = new AntKillerSpray(antKillerSpray_Quantity,
				antKillerSpray_Radius, antKillerSpray_ToxicTime);
	}

	public void useSpray(Field field) {
		activeSpray.flow(field);
	}

	public void chooseSpray(Spray activatedSpray) {
		activeSpray = activatedSpray;
	}
}
